package com.bwie.product.mapper;

import com.bwie.common.domain.Coupon;
import com.bwie.common.domain.Product;
import com.bwie.common.domain.request.ProductRequest;
import com.bwie.common.domain.request.ShopRequset;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductMapper {
    List<ProductRequest> showAll();

    Integer shopAttention(@Param("productId") Integer productId);

    void updPack(@Param("randomNumber") int randomNumber, @Param("userId") Integer userId);

    List<Product> findId(@Param("productId") Integer productId);

    Integer addCar(ShopRequset shopRequset);

    Integer addCoupon(Coupon coupon);

    void minusCoupon(@Param("systemId") Integer systemId, @Param("systemNum") Integer systemNum, @Param("count") int count);
}
